package com.chunxuan.langquan.dao.bean;

import java.io.Serializable;
import java.util.List;

public class PageBean<B> implements Serializable {
    private static final long serialVersionUID = -4855048710496927454L;

    /**
     * {
     * "data": [
     * {
     * "user_id": 6,
     * "content": "666666",
     * "comment_time": "2021年02月20日",
     * "user_name": "170****3667",
     * "status_text": ""
     * }
     * ],
     * "page": 1,
     * "page_size": 10,
     * "total": 2,
     * "total_page": 1
     * }
     */
    private List<B> data;
    private int page;
    private int page_size;
    private int total;
    private int total_page;

    public List<B> getData() {
        return data;
    }

    public void setData(List<B> data) {
        this.data = data;
    }

    public int getPage() {
        return page;
    }

    public void setPage(int page) {
        this.page = page;
    }

    public int getPage_size() {
        return page_size;
    }

    public void setPage_size(int page_size) {
        this.page_size = page_size;
    }

    public int getTotal() {
        return total;
    }

    public void setTotal(int total) {
        this.total = total;
    }

    public int getTotal_page() {
        return total_page;
    }

    public void setTotal_page(int total_page) {
        this.total_page = total_page;
    }
}
